package org.javaboy.consumer01.consumer;

import org.javaboy.consumer01.config.DlxConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class DlxConsumer {

    private static final Logger logger = LoggerFactory.getLogger(DlxConsumer.class);

    @RabbitListener(queues = DlxConfig.DLX_QUEUE_NAME)
    public void receiveMessage(String message) {
        logger.info("收到消息：{}", message);
    }
}
